<template>
	<view class="modal">
		<view class="modal-bkg" />
		<view class="modal-pop">
			<view class="close" @tap="close">
				<img src="@/static/icon/icon_16_close_w@2x.png" alt="">
			</view>
			<view class="pop-main">
				<view class="title">领取奖励</view>
				
				<view class="main">
					<img class="success-icon" src="@/static/index/img_64_task_thumb_05@2x.png" alt="">
					<view class="success-desc">
						任务奖励<view class="red">{{count}}积分</view>领取成功
					</view>
					<!-- <input type="text" v-model="douyinnum" placeholder="请输入您的抖音号"> -->
					<!-- <view class="input-desc">
						*抖音号绑定后将不可变更，请输入正确的本人抖音号，恶意绑定让人抖音号将会受到封号惩罚并取消所有中奖纪录
					</view> -->
				</view>
				<view class="next-btn" @click="close">
					继续做任务
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	import {mapState} from 'vuex'
	export default {
		name: 'receiveModal',
		props: {
			authType: {
				type: Array,
				default(){
					return ['authAvatar']
				}
			},
			count: {
				type: String,
				default(){
					return '0'
				}
			},
			
		},
		computed:{
			...mapState(['userinfo'])
		},
		data() {
			return {
				douyinnum: null
			};
		},
		methods: {
			close(){
				console.log('关闭了')
				uni.$emit('pop_close')
				uni.$emit('refresh_list')
			},
		}
	}
</script>

<style lang="scss" scoped>
	.modal{
		position: fixed;
		top: 0;
		.modal-bkg{
			position: fixed;
			top: 0;
			background-color: rgba(0,0,0,.5);
			width: 100vw;
			height: 100vh;
		}
		.modal-pop{
			position: absolute;
			top: calc(50vh - 146px);
			left: calc(50vw - 160px);
			width: 320px;
			height: 292px;
			background-image: url('@/static/index/img_modal_card_01@2x.png');
			background-size: 320px 292px;
			.close{
				position: absolute;
				top: -56px;
				right: 0;
				width: 72px;
				height: 56px;
				background: url('@/static/btn/btn_32_ghost_shadow_nor@2x.png');
				background-size: 72px 56px;
				display: flex;
				align-items: center;
				justify-content: center;
				img{
					width: 15px;
					height: 15px;
				}
			}
			.pop-main{
				width: 248px;
				margin: 26px auto;
				.title{
					width: 64px;
					height: 22px;
					font-size: 16px;
					color: #F82045;
					font-weight: 600;
				}
				.main{
					text-align: center;
					.success-icon{
						width: 96px;
						height: 96px;
						text-align: center;
						margin-top: 20px;
					}
					.success-desc{
						height: 22px;
						line-height: 22px;
						font-size: 16px;
						color: #666666;
						text-align: center;
						font-weight: 600;
						margin-top: 16px;
						.red{
							color: #F82045;
							display: inline-block;
							padding: 0 4px;
						}
					}
					// input{
					// 	width: 248px;
					// 	height: 48px;
					// 	background: #F5F5F5;
					// 	border-radius: 8px;
					// 	padding-left: 10px;
					// 	padding-right: 10px;
					// 	margin-top: 40px;
					// }
					// .input-desc{
					// 	height: 58px;
					// 	background: #FDF8DF;
					// 	border-radius: 8px;
					// 	padding: 8px 12px;
					// 	font-size: 10px;
					// 	color: #805340;
					// 	margin-top: 12px;
					// }
				}
				.next-btn{
					width: 152px;
					height: 56px;
					margin: 22px auto 0;
					text-align: center;
					line-height: 56px;
					background: url('@/static/btn/btn_32_red_152_shadow_nor@2x.png');
					background-size: 152px 56px;
					background-repeat: no-repeat;
					color: #FFFFFF;
					font-weight: 500;
				}
			}
			
		}
		
	}
</style>
